// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
    compatibilityDate: "2024-04-03",
    devtools: { enabled: true },

    /* devServer: {
        host: "192.168.5.95", //自己电脑的Ip
        port: 3000,
    }, */

    app: {
        // 给所有的页面head添加的配置（seo，内外部资源）
        head: {
            title: "pbdis",
            charset: "UTF-8",
            viewport: "width=device-width, initial-scale=1.0",
            meta: [
                {
                    name: "keywords",
                    content: "品创设计",
                },
                {
                    name: "description",
                    content: "用户定制",
                },
            ],
            link: [
                {
                    rel: "shortcut icon",
                    href: "favicon.ico",
                    type: "image/x-icon",
                },
            ],
            style: [
                {
                    children: `body{color: red}`,
                },
            ],
            script: [
                {
                    src: "https://jd.com",
                },
            ],
        },
    },

    modules: [
        [
            "@pinia/nuxt",
            {
                autoImports: [
                    // 自动引入 `defineStore()`
                    "defineStore",
                    // 自动引入 `defineStore()` 并重命名为 `definePiniaStore()`
                    ["defineStore", "definePiniaStore"],
                ],
            },
        ],
    ],
});
